import request from '@/utils/request'
import defaultSettings from '@/settings'

// 登录方法
export function accountLogin(username, password, code, uuid) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast+'/accountLogin?account='+username+'&password='+password,
    method: 'get'
  })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast+'/getInfo',
    method: 'get'
  })
}

// 退出方法
export function logout() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast+'/logout',
    method: 'get'
  })
}

// 获取验证码
export function getCodeImg() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast+'/captchaImage',
    method: 'get'
  })
}